README — Reproducibility Package

---------------------------------
1. Overview
---------------------------------

This folder contains the reproducibility materials for:
  "Initiate and Elevate! How Political Parties Can Set an Agenda" (conditionally accepted at The American Political Science Review)
  Daniel Sandvej Eriksen
  December 2025

The package reproduces all tables, figures, and statistical models reported in the manuscript using the included analysis datasets and R code.

---------------------------------
2. Directory Structure
---------------------------------

ReplicationPackage/
│
├── code/ 
│     01_analysis.R [this is the master script used for producing all material, i.e., tables, figures, models, and important numbers mentioned in the manuscript]
│
├── data/
│     analysis/ [in this folder, all data files (in .Rdata format) used for producing all tables, figures, models, and important numbers mentioned in the manuscript are located]
│         data_figure_2.Rdata
│         data_figure_3.Rdata
│         etc...
│
├── results/ [in this folder, all outputs are saved. That is, here will all tables, figures, models, and important numbers mentioned in the manuscript will be located]
│     Table_2.csv
│     Table_3.xlsx
│     Table_A2.csv
│     model_A1.doc
│     model_A2.doc
│     model_A3.doc
│     Etc...
│
├── Codebook_Initiate_and_Elevate.pdf [contains documentation for all datasets and all variables used in all analyses]
│
└── sessionInfo.txt [contains information about exact R version, packages, platform, locale]


---------------------------------
3. Software Requirements
---------------------------------

A. Operating system
The analyses were developed and tested under:
Windows 11 x64 (build 26100)
Platform reported by R: x86_64-w64-mingw32/x64

These details are, as mentioned above, recorded in sessionInfo.txt, which documents the R platform and locale settings as well as relevant packages used during the analysis.

B. R version
All analyses rely on R. The exact R version used was:
R version 4.5.0 (2025-04-11 ucrt)


---------------------------------
4. Data Description
---------------------------------

A. Data included in this package

The folder data/analysis/ contains all analysis-ready datasets used to generate the manuscript’s results. Each file corresponds to a specific table or figure in the manuscript.


B. Data source and restrictions

The analyses are based on tweets by politicians and political parties in Denmark and the United Kingdom. Due to Twitter’s data policies and GDPR-relevant considerations, raw data (including original tweet texts) cannot be shared. The raw tweets may contain personally sensitive political expressions and identifiers. Sharing them directly would violate Twitter’s Terms of Service and ethical/legal requirements as well as GDPR.

Moreover, please notice that the tweet-collection scripts are not included. This is because of the fact that since Twitter virtually closed academic API access in early 2023, the original retrieval scripts are now non-functional and cannot be executed by replicators.They are therefore omitted from this package but can of course be shared upon request.

------------------------------------
5. Instructions for Running the Code
------------------------------------

A. Open R or RStudio.
B. Open the file: code/01_analysis.R
C. Run the script from top to bottom

The script automatically detects its own location, sets the working directory accordingly, loads all required data from the data/analysis/ folder, and produces all results in the results/ folder.

Replicators should use the same R version and package versions as detailed in sessionInfo.txt for full reproducibility.


----------------------------------------------------------------------------
6. Examples of Mapping of Manuscript Results to Code, Data, and Output Files
----------------------------------------------------------------------------

Manuscript Item			Script				Data File			Output File
Table 2				01_analysis.R			data_table_2.Rdata		Table_2.csv
Figure 4			01_analysis.R			data_figure_4.Rdata		figure_4.pdf
Model A31			01_analysis.R			data_model_a31.Rdata		model_A31.doc
	


